package com.nova.bluetooth.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.nova.bluetooth.R;
import com.nova.bluetooth.bean.DeviceConfigBean;

public class ConfiguredAdapter extends BaseQuickAdapter<DeviceConfigBean, BaseViewHolder> {


    public ConfiguredAdapter() {
        super(R.layout.item_configured_device);
        addChildClickViewIds(R.id.content);
        addChildClickViewIds(R.id.iv_delete);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, DeviceConfigBean s) {
        baseViewHolder.setText(R.id.tv_title, s.getDeviceName()  +  "-配置");
    }
}
